type userType = {name:string;age:number;sex?:string;};
function addUser(user:userType):void{
    console.log("添加用户");
}
addUser({name:"后盾人",age:18});

function updateUser(user:userType):void{
    console.log("修改用户");
}
updateUser({name:"后盾人",age:18,sex:"女"});
